/*
 * Copyright 2018, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.example.jc

import android.app.Fragment

/**
 * This fragment shows the the status of the Mars real-estate web services transaction.
 */
class OverviewFragment : Fragment() {
//
//    /**
//     * Lazily initialize our [OverviewViewModel].
//     */
//    private val viewModel: OverviewViewModel by lazy {
//        ViewModelProvider(this).get(OverviewViewModel::class.java)
//    }
//
//    /**
//     * Inflates the layout with Data Binding, sets its lifecycle owner to the OverviewFragment
//     * to enable Data Binding to observe LiveData, and sets up the RecyclerView with an adapter.
//     */
//    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
//                              savedInstanceState: Bundle?): View? {
//        val binding = FragmentOverviewBinding.inflate(inflater)
//
//        // Allows Data Binding to Observe LiveData with the lifecycle of this Fragment
//        binding.lifecycleOwner = this
//
//        // Giving the binding access to the OverviewViewModel
//        binding.viewModel = viewModel
//
//        setHasOptionsMenu(true)
//        return binding.root
//    }
//
//    /**
//     * Inflates the overflow menu that contains filtering options.
//     */
//    override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
//        inflater.inflate(R.menu.overflow_menu, menu)
//        super.onCreateOptionsMenu(menu, inflater)
//    }
}
